package com.example.rentadmin.controller;

import com.huqing.icu.base.BaseController;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 测试controller
 * @Author huqing
 * @Date 2025/7/5 14:50
 **/
@RestController
@RequestMapping("/api/test")
@Tag(name = "社区帖子接口")
public class TestController extends BaseController {

    @Operation(summary = "测试")
    @RequestMapping(value = "/hello", method = RequestMethod.GET, produces = "application/json")
    public String addPost(HttpServletRequest request) {
        return jsonSuccess("hello，测试成功");
    }
}
